<template>
  <div class="back-to-home">
    <el-button @click="router.push('/')">
      <img src="/svg/home.svg" alt="" />
    </el-button>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
</script>

<style lang="scss" scoped>
.back-to-home {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 9999;
  img {
    width: 1.5rem;
    height: auto;
  }
}
</style>
